﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;
using System.ComponentModel;
using QuanLyRapChieuPhim.DAO;
using QuanLyRapChieuPhim.DTO;

namespace QuanLyRapChieuPhim.BUS
{
    class VeBUS
    {
        private VeDAO DAO = new VeDAO();

        public BindingList<VeDTO> GetList()
        {
            return DAO.GetList();
        }

        public BindingList<VeDTO> GetList_QL()
        {
            return DAO.GetList_QL();
        }

        public BindingList<VeDTO> GetList_Hang(int _Ma)
        {
            return DAO.GetList_Hang(_Ma);
        }

        public BindingList<VeDTO> GetList_Day(int _Ma)
        {
            return DAO.GetList_Day(_Ma);
        }

        public BindingList<VeDTO> GetList_QL_DaXoa()
        {
            return DAO.GetList_QL_DaXoa();
        }

        public VeDTO GetFromId(int _Ma)
        {
            return DAO.GetFromId(_Ma);
        }

        public int GetGiaVe(int _Ma)
        {
            return DAO.GetGiaVe(_Ma);
        }

        public int CheckTrong(int _MaSuat, int _HangGhe, int _DayGhe)
        {
            return DAO.CheckTrong(_MaSuat, _HangGhe, _DayGhe);
        }

        public bool Delete(int _Ma)
        {
            return DAO.Delete(_Ma);
        }

        public bool SetDaMua(int _Ma)
        {
            return DAO.SetDaMua(_Ma);
        }

        public bool SetDaDat(int _Ma)
        {
            return DAO.SetDaDat(_Ma);
        }

        public bool BoDaDat(int _Ma)
        {
            return DAO.BoDaDat(_Ma);
        }

        public bool UnDelete(int _Ma)
        {
            return DAO.UnDelete(_Ma);
        }

        public bool Add(VeDTO _DTO)
        {
            return DAO.Add(_DTO);
        }

        public bool Update(VeDTO _DTO)
        {
            return DAO.Update(_DTO);
        }

        public int GetIDFromSuatHangDay(int _MaSuat, int _HangGhe, int _DayGhe)
        {
            return DAO.GetIDFromSuatHangDay(_MaSuat, _HangGhe, _DayGhe);
        }

        public bool BanVe(int _Ma, int _MaKhachHang)
        {
            return DAO.BanVe(_Ma,_MaKhachHang);
        }
    }
}
